import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import Directive from "./utils/directive/directives";
import toast from "./directive/toast"; //提示框组件
import macksjs from "./directive/dialog"; //弹框组件
import * as filters from "./filters";

Vue.use(ElementUI);
Vue.use(Directive);
Vue.use(toast);
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
Vue.config.productionTip = false;
Vue.prototype.$confirm = macksjs; //弹框组件
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
